<!-- 临床信息 -->
<div xmlns:th="http://www.thymeleaf.org" th:fragment="clinicInfo (readonly)">
	<div class="box box-default">
		<div class="box-header with-border">
			<h6 class="box-title">临床信息</h6>
		</div>
		<!-- 临床信息表单区域 -->
		<div id="clinicInfoFormDiv" th:if="${readonly=='false'}">
			<form id="clinicInfoForm" class="form-horizontal">
				<div class="box-body">
					<div class="form-group">
						<label for="self_reported" class="col-md-1 control-label">主诉<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-5">
							<textarea id="self_reported" class="form-control" rows="4"
							name="self_reported" bindname="self_reported" btvd-type="required" btvd-class='btvdclass'
							maxlength="512" placeholder="主诉信息最多可输入512字  ..."></textarea>
						</div>
						<label for="history" class="col-md-1 control-label">病史<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-5">
							<textarea id="history" class="form-control" rows="4"
							name="history" bindname="history"
							btvd-type="required" btvd-class='btvdclass'
							maxlength="512" placeholder="病史信息最多可输入512字  ..."></textarea>
						</div>
					</div>
					<div class="form-group">
						<label for="history_now" class="col-md-1 control-label">现病史：
						</label>
						<div class="col-md-5">
							<textarea id="history_now" class="form-control" rows="4"
							name="history_now" bindname="history_now" maxlength="512" placeholder="现病史信息最多可输入512字  ..."
							></textarea>
						</div>
						<label for="history_past" class="col-md-1 control-label">既往史：
						</label>
						<div class="col-md-5">
							<textarea id="history_past" class="form-control" rows="4"
							name="history_past" bindname="history_past"
							maxlength="512" placeholder="既往史信息最多可输入512字  ..."></textarea>
						</div>
					</div>
					<div class="form-group">
						<label for="history_allergic" class="col-md-1 control-label">过敏史：
						</label>
						<div class="col-md-5">
							<textarea id="history_allergic" class="form-control" rows="4"
							name="history_allergic" bindname="history_allergic" maxlength="512" placeholder="过敏史信息最多可输入512字  ..."
							></textarea>
						</div>
						<label for="history_family" class="col-md-1 control-label">家族史：
						</label>
						<div class="col-md-5">
							<textarea id="history_family" class="form-control" rows="4"
							name="history_family" bindname="history_family"
							maxlength="512" placeholder="家族史信息最多可输入512字  ..."></textarea>
						</div>
					</div>
					<div class="form-group">
						<label for="prediagnose" class="col-md-1 control-label">预诊断<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-5">
							<textarea id="prediagnose" class="form-control" rows="4"
							name="prediagnose" bindname="prediagnose" btvd-type="required" btvd-class='btvdclass'
							maxlength="512" placeholder="预诊断信息最多可输入512字  ..."></textarea>
						</div>
						<label for="supple_examination" class="col-md-1 control-label">辅助检查：
						</label>
						<div class="col-md-5">
							<textarea id="supple_examination" class="form-control" rows="4"
							name="supple_examination" bindname="supple_examination"
							maxlength="512" placeholder="辅助检查信息最多可输入512字  ..."></textarea>
						</div>
					</div>
					<div class="form-group">
						<label for="after_admission" class="col-md-1 control-label">入院后用药：
						</label>
						<div class="col-md-11">
							<textarea id="after_admission" class="form-control" rows="4"
							name="after_admission" bindname="after_admission"
							maxlength="512" placeholder="入院后用药信息最多可输入512字  ..."></textarea>
						</div>
					</div>
					<div class="form-group">
						<label for="treatment_process" class="col-md-1 control-label">治疗经过：
						</label>
						<div class="col-md-11">
							<textarea id="treatment_process" class="form-control" rows="4"
							name="treatment_process" bindname="treatment_process" maxlength="512"
							placeholder="治疗经过信息最多可输入512字  ......"></textarea>
						</div>
					</div>
					<div class="form-group">
						<label for="physical_examination" class="col-md-1 control-label">体格检查：
						</label>
						<div class="col-md-11">
							<textarea id="physical_examination" class="form-control" rows="4"
							name="physical_examination" bindname="physical_examination" maxlength="512"
							placeholder="体格检查信息最多可输入512字  ......"></textarea>
						</div>
					</div>
					<div class="form-group">
						<label for="preliminary_diagnosis" class="col-md-1 control-label">初步诊断<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-11">
							<textarea id="preliminary_diagnosis" class="form-control" rows="4"
							name="preliminary_diagnosis" bindname="preliminary_diagnosis" btvd-type="required" btvd-class='btvdclass'
							maxlength="512" placeholder="初步诊断信息最多可输入512字  ..."></textarea>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-1 control-label">附件列表：
						</label>
						<div class="col-md-10">
							<table id="editAttachTable" data-class="table table-bordered"
								data-pagination="false" data-unique-id="id">
								<thead>
									<tr class="dataStore_title">
										<th data-field="filename" data-align="left" data-valign="middle"
											data-width="40%">附件名称</th>
										<th data-field="create_time" data-align="left"
											data-valign="middle" data-width="40%"  data-formatter="timeFormatter">创建时间</th>
										<th data-field="operation" data-align="center"
											data-valign="middle" data-formatter="editAttachTableFormatter"
											data-events="editAttachTableEvents" data-width="20%"><div>操&nbsp;作</div></th>
									</tr>
								</thead>
							</table>
						</div>
					</div>
				</div>
			</form>
			<form id="attachFrom" class="form-horizontal" >
				<div class="form-group">
				    <label class="col-md-1 control-label" style="width: 145px;">患者知情同意书：</label>
					<div class="col-md-2">
						<button id="agreeBookDownload" type="button" class="btn btn-link">模板下载</button>
					</div>
				</div>
			     <div class="form-group">
				    <label class="col-md-1 control-label">上传附件：</label>
					<div class="col-md-6">
						 <input id="file" name="file" type="file" multiple/>
						 <span class="text-info">可以选择多个附件，包括患者知情同意书</span>
					</div>
				</div>
			</form>
		</div>
		<!-- 临床信息显示区域（只读） -->
		<div th:if="${readonly=='true'}">
			<table id="clinicInfo_table" width="100%" class="table table-bordered table-striped">
					<tbody>
					<tr>
						<td class="table_td">主诉：</td>
						<td colspan="4"><span bindname="self_reported"></span></td>
					</tr>
					<tr>
						<td class="table_td">病史：</td>
						<td colspan="4"><span bindname="history"></span></td>
					</tr>
					<tr>
						<td class="table_td">现病史：</td>
						<td colspan="4"><span bindname="history_now"></span></td>
					</tr>
					<tr>
						<td class="table_td">既往史：</td>
						<td colspan="4"><span bindname="history_past"></span></td>
					</tr>
					<tr>
						<td class="table_td">过敏史：</td>
						<td colspan="4"><span bindname="history_allergic"></span></td>
					</tr>
					<tr>
						<td class="table_td">家族史：</td>
						<td colspan="4"><span bindname="history_family"></span></td>
					</tr>
					<tr>
						<td class="table_td">辅助检查：</td>
						<td colspan="4"><span bindname="supple_examination"></span></td>
					</tr>
					<tr>
						<td class="table_td">预诊断：</td>
						<td colspan="4"><span bindname="prediagnose"></span></td>
					</tr>
					<tr>
						<td class="table_td">入院后用药：</td>
						<td colspan="4"><span bindname="after_admission"></span></td>
					</tr>
					<tr>
						<td class="table_td">治疗经过：</td>
						<td colspan="4"><span bindname="treatment_process"></span></td>
					</tr>
					<tr>
						<td class="table_td">体格检查：</td>
						<td colspan="4"><span bindname="physical_examination"></span></td>
					</tr>
					<tr>
						<td class="table_td">初步诊断：</td>
						<td colspan="4"><span bindname="preliminary_diagnosis"></span></td>
					</tr>
					<tr>
						<td class="table_td">附件列表：</td>
						<td colspan="4">
							<table id="showAttachTable" data-class="table table-bordered"
							data-pagination="false" data-unique-id="id">
								<thead>
									<tr class="dataStore_title">
										<th data-field="filename" data-align="left" data-valign="middle"
											data-width="40%">附件名称</th>
										<th data-field="create_time" data-align="left"
											data-valign="middle" data-width="40%"  data-formatter="timeFormatter">创建时间</th>
										<th data-field="operation" data-align="center"
											data-valign="middle" data-formatter="showAttachTableFormatter"
											data-events="showAttachTableEvents" data-width="20%"><div>操&nbsp;作</div></th>
									</tr>
								</thead>
							</table>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	<script th:if="${projectModel=='dev'}" th:src="@{/static/js/business/consultation/common/clinicInfo.js(v=${#dates.createNow().getTime()})}"></script>
	<script th:if="${projectModel=='product'}" th:src="@{/static/js/business/consultation/common/clinicInfo.js}"></script>
</div>
